
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TRIS -- The Game</title>
<link rel="stylesheet" href="style.css" />

<script type="text/javascript" src="game.js"></script>

	
</head>

<body>


<div id="container">

	<div id="header">TRIS! -- The Game</div>

<br />
<br />


	<form name="tris">

		<div align="center">
			Giocatore n°1:<input type="text" name="g1" value="" onblur="v=this.value;this.value=v.substr(0,1).toUpperCase()+v.substr(1)" />

			Giocatore n°2:<input type="text" name="g2" value="" onblur="v=this.value;this.value=v.substr(0,1).toUpperCase()+v.substr(1)" /> <br /><br />
			
            <input type="button" name="avvia" value="Start" onclick="start(document.tris.g1.value,document.tris.g2.value);" />
            <input type="button" name="riavvia" value="Restart" onclick="restart();" />
		</div>
	</form>

<br />
	<div id="alert"></div>


	<table border="0" id="table">
  		<tr>
    		<td id="c1" onclick="game('c1',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
    		<td id="c2" onclick="game('c2',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
    		<td id="c3" onclick="game('c3',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
  		</tr>
  		<tr>
    		<td id="c4" onclick="game('c4',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
    		<td id="c5" onclick="game('c5',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
    		<td id="c6" onclick="game('c6',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
  		</tr>
  		<tr>
    		<td id="c7" onclick="game('c7',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
    		<td id="c8" onclick="game('c8',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
    		<td id="c9" onclick="game('c9',document.tris.g1.value,document.tris.g2.value);">&nbsp;</td>
  		</tr>
	</table>

	<div id="footer">Realizzato da Mattia Franchetto - 3B ITIS G.Peano</div>
</div>
</body>
</html>
